using System.Collections;

public class InGametutorialWatetime : InGameTutorialObject
{
	public float wateTime = 1f;

	public override bool OnStepStart(string name)
	{
		if (base.OnStepStart(name))
		{
			if (base.gameObject.GetActive())
			{
				StartCoroutine(WateToUse());
			}
			return true;
		}
		return false;
	}

	private new void OnEnable()
	{
		for (int i = 0; i < values.Length; i++)
		{
			if (values[i].started)
			{
				StartCoroutine(WateToUse());
			}
		}
	}

	public virtual IEnumerator WateToUse()
	{
		yield return StartCoroutine(BCWUtils.WaitForRealSeconds(wateTime));
		Use(false);
	}
}
